<?php if(!$this->hasIdentity()) { ?>
<div class="span-12">
<?php
	// check if there is error message 
	if($this->loginMessage != null) { ?>
		<p class="span-10 loginError"><?php echo $this->loginMessage; ?></p>
	<?php } ?>	
	
	<!-- always draw form -->
	<div id="loginForm" class="span-6">
	<?php echo $this->form;	?>
	</div>
</div>

<?php } else {?>
<!-- draw user information after he logged in successfully -->
<div class="span-6">
<fieldset class="fieldsetFormNav large">
<div class="span-4 ">Tên đăng nhập: <?php echo $username = $this->username(); ?></div>
<div class="span-4 ">Họ tên: <?php echo $this->customerName($username); ?></div>
<?php echo $this->logoutLink($this->moduleName); ?>
<?php echo $this->panelLink($this->moduleName); ?>
</fieldset>
</div>
<?php }?>


